package com.book.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wx
 * @since 2023-10-12 08:17:13
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("operator")
public class Operator implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 运营商id
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Long oid;

    /**
     * 运营商名
     */
    @TableField("oname")
    private String oname;

    /**
     * 运营商密码
     */
    @TableField("pwd")
    private String pwd;

    /**
     * 电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 盐
     */
    @TableField("salt")
    private String salt;

    /**
     * 注册时间
     */
  // @TableField("createtime")
    @TableField(value = "createtime",fill = FieldFill.INSERT)
    private Date createtime;

    /**
     * 预留字段
     */
    @TableField("attr1")
    private String attr1;

    @TableField("attr2")
    private String attr2;

    @TableField("attr3")
    private Long attr3;

    @TableField("attr4")
    private Long attr4;


    public static final String OID = "oid";

    public static final String ONAME = "oname";

    public static final String PWD = "pwd";

    public static final String PHONE = "phone";

    public static final String SALT = "salt";

    public static final String CREATETIME = "createtime";

    public static final String ATTR1 = "attr1";

    public static final String ATTR2 = "attr2";

    public static final String ATTR3 = "attr3";

    public static final String ATTR4 = "attr4";

}
